<table align="center">
<tr>
  <td class="table1" align="center">&nbsp;</td>
  <td class="table1" align="center">&nbsp;</td>
  <td class="table1" align="center">&nbsp;</td>
  <td class="table1" align='center'><B>Sr. No.</td>
  <td class="table1" align='center'><B>Customer</td>
  <td class="table1" align='center'><B>Challan No.</td>
  <td class="table1" align='center'><B>Challan Date</td>
	<td class="table1" align='center'><B>Challan Type</td>
	  <td class="table1" align="center">&nbsp;</td>
</tr>
{section name="sec" loop=$deliveryChalanArray}
<tr>
  <td class="table2">  
	  <a href="#" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15" title="Edit"></a>
	</td>
	<td class="table2">  
	  <a href="deliveryChallanDelete.php?deliveryChallanMasterId={$deliveryChalanArray[sec].deliveryChallanMasterId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15" title="Delete"></a>
	</td>
	<td class="table2">  
	  <a href="deliveryChallanDetail.php?deliveryChallanMasterId={$deliveryChalanArray[sec].deliveryChallanMasterId}" class="link">Detail</a>
	</td>
  <td class="table2" align="center">{$smarty.section.sec.rownum}</td>
  <td class="table2" align="left">{$deliveryChalanArray[sec].companyName}</td>
  <td class="table2" align="center">{$deliveryChalanArray[sec].srNo}</td>
  <td class="table2" align="center" NOWRAP>{$deliveryChalanArray[sec].delivaryDate}</td>    
  <td class="table2" align="center">{$deliveryChalanArray[sec].challanType}</td>
  <td class="table2">  
	  <a href="deliveryChallanDetail.php?print=1&deliveryChallanMasterId={$deliveryChalanArray[sec].deliveryChallanMasterId}" class="link">Print</a>
	</td>
</tr>
{sectionelse}
<tr>
  <td align="center" colspan="10"> <h2><font color="red"><b>{$msg}</b></font></h2></td>
</tr>
{/section}
</table>